<?xml version="1.0" encoding="utf-8" ?>

<!--

  NIGHTMARE - 0,
	MAGIC_BEANS - 1,
	DREAM - 2

-->

<level type="1">
  <meta score="0" buttonPrice="10"></meta>
  <bear maxHealth="100" startPosition="300" velocity="4.0" damage="11" criticalDamage="20" defaultAmmo="100" />

  <!--OT_CLOUD = 0,
  OT_SPIKE_NIGHTMARE_LARGE = 1,
  OT_SPIKE_NIGHTMARE_MEDIUM = 2,
  OT_SPIKE_NIGHTMARE_SMALL = 3,
  OT_BEAN_A = 4,
  OT_BEAN_B = 5,
  OT_BEAN_C = 6,
  OT_BEAN_D = 7,
  OT_BEAN_E = 8-->

  <!--
  MAGIC BEAN LEVEL MARGIN
  Since the beanstalks are made in such a way that those can be only placed on the side of the screen, here are the positioning
  coordinates for them:
  
  OT_BEAN_A: 269.5 (Left) 498.5 (Right, with 3.14 rotation)
  OT_BEAN_B: 128.5 (left) 638.5 (Right, with 3.14 rotation)
  OT_BEAN_C: 172 (left) 596 (Right, with 3.14 rotation)
  OT_BEAN_D: 188.5 (left) 579.5 (Right, with 3.14 rotation)
  OT_BEAN_E: 206.5 (left) 561.5 (Right, with 3.14 rotation)
  -->

  <obstacles>

    <obstacle type="1" x="119" y="1000" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="1600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="2200" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="2800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="5" x="638.5" y="3400" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="3800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="1" x="119" y="4400" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="5000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="5600" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="6100" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="6800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="7300" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="7800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="8300" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="8800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="10400" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="11000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="11600" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="12000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="12500" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="13000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="13400" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="13600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="14000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="14400" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="14800" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="1" x="119" y="15200" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="2" x="546" y="15600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="16000" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="3" x="534.5" y="16400" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="17000" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="17300" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="17700" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="18200" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="18600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="6" x="172" y="19100" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="19600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="20000" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <!--<obstacle type="4" x="498.5" y="1420" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />

    <obstacle type="5" x="638.5" y="4400" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="4700" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="5" x="128.5" y="9200" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="9500" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="8" x="206.5" y="9800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="1" x="119" y="10800" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="4" x="498.5" y="11800" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="4" x="269.5" y="12600" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="13200" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="7" x="579.5" y="13800" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />

    <obstacle type="5" x="128.5" y="14500" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="14800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="8" x="206.5" y="15200" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="4" x="269.5" y="16800" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="546" y="17500" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />
    <obstacle type="2" x="222" y="17900" inflictsDamage="true" healthDamage="0" rotation="3.14" scale="1" />
    <obstacle type="5" x="128.5" y="18200" inflictsDamage="true" healthDamage="0" rotation="0" scale="1" />-->
  </obstacles>

  <!--
  
  MT_NIGHTMARE_A = 0,
	MT_NIGHTMARE_B = 1,
	MT_NIGHTMARE_C = 2,
	MT_MAGICBEAN_A = 3,
	MT_MAGICBEAN_B = 4,
	MT_MAGICBEAN_C = 5,
	MT_CANDYLAND_A = 6,
	MT_CANDYLAND_B = 7,
	MT_CANDYLAND_C = 8,
	MT_CANDYLAND_D = 9,
	MT_CANDYLAND_E = 10
  
  -->

  <monsters>
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="0" x="460" y="3000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="1" x="460" y="5000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="2" x="460" y="7000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="3" x="460" y="9000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="4" x="460" y="12000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="5" x="460" y="15000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="6" x="460" y="17000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="7" x="460" y="19000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="1000" scale=".2" velocityX="2" velocityY="2" type="8" x="460" y="23000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="4000" scale=".6" velocityX="2" velocityY="2" type="9" x="460" y="25000" maxHealth="40" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
  </monsters>


  <buttons>
    <button x="300" y="900" />
    <button x="360" y="900" />
    <button x="300" y="960" />
    <button x="360" y="960" />
    <button x="300" y="1020" />
    <button x="360" y="1020" />
    <button x="300" y="1080" />
    <button x="360" y="1080" />
    <button x="300" y="1140" />
    <button x="360" y="1140" />
    <button x="300" y="1200" />
    <button x="360" y="1200" />

    <button x="500" y="2000" />
    <button x="560" y="2000" />
    <button x="500" y="2060" />
    <button x="560" y="2060" />
    <button x="500" y="2120" />
    <button x="560" y="2120" />
    <button x="500" y="2180" />
    <button x="560" y="2180" />
    <button x="500" y="2240" />
    <button x="560" y="2240" />
    <button x="500" y="2300" />
    <button x="560" y="2300" />

    <button x="300" y="3000" />
    <button x="360" y="3000" />
    <button x="300" y="3060" />
    <button x="360" y="3060" />
    <button x="300" y="3120" />
    <button x="360" y="3120" />
    <button x="300" y="3180" />
    <button x="360" y="3180" />
    <button x="300" y="3240" />
    <button x="360" y="3240" />
    <button x="300" y="3300" />
    <button x="360" y="3300" />

    <button x="500" y="4000" />
    <button x="560" y="4000" />
    <button x="500" y="4060" />
    <button x="560" y="4060" />
    <button x="500" y="4120" />
    <button x="560" y="4120" />
    <button x="500" y="4180" />
    <button x="560" y="4180" />
    <button x="500" y="4240" />
    <button x="560" y="4240" />
    <button x="500" y="4300" />
    <button x="560" y="4300" />
    
    <button x="500" y="4360" />
    <button x="440" y="4360" />
    <button x="500" y="4420" />
    <button x="440" y="4420" />

    <button x="440" y="4480" />
    <button x="380" y="4480" />
    <button x="440" y="4540" />
    <button x="380" y="4540" />

    <button x="380" y="4600" />
    <button x="320" y="4600" />
    <button x="380" y="4660" />
    <button x="320" y="4660" />

    <button x="320" y="4720" />
    <button x="260" y="4720" />
    <button x="320" y="4780" />
    <button x="260" y="4780" />

    <button x="260" y="4840" />
    <button x="200" y="4840" />
    <button x="260" y="4900" />
    <button x="200" y="4900" />

    <button x="200" y="4960" />
    <button x="140" y="4960" />
    <button x="200" y="5020" />
    <button x="140" y="5020" />

    <button x="260" y="5080" />
    <button x="200" y="5080" />
    <button x="260" y="5140" />
    <button x="200" y="5140" />

    <button x="320" y="5200" />
    <button x="260" y="5200" />
    <button x="320" y="5260" />
    <button x="260" y="5260" />
    
    <button x="380" y="5320" />
    <button x="320" y="5320" />
    <button x="380" y="5380" />
    <button x="320" y="5380" />

    <button x="440" y="5440" />
    <button x="380" y="5440" />
    <button x="440" y="5500" />
    <button x="380" y="5500" />

    <button x="500" y="5560" />
    <button x="440" y="5560" />
    <button x="500" y="5620" />
    <button x="440" y="5620" />

    <button x="500" y="5680" />
    <button x="440" y="5680" />
    <button x="500" y="5740" />
    <button x="440" y="5740" />

    <button x="500" y="5800" />
    <button x="440" y="5800" />
    <button x="500" y="5860" />
    <button x="440" y="5860" />

    <button x="500" y="6400" />
    <button x="440" y="6460" />
    <button x="500" y="6580" />
    <button x="440" y="6640" />
    <button x="500" y="6760" />
    <button x="440" y="6820" />
    <button x="500" y="6940" />
    <button x="440" y="7000" />
    <button x="500" y="7120" />
    <button x="440" y="7180" />
    <button x="500" y="7300" />


    <button x="300" y="7400" />
    <button x="360" y="7400" />
    <button x="300" y="7460" />
    <button x="360" y="7460" />
    <button x="300" y="7520" />
    <button x="360" y="7520" />
    <button x="300" y="7580" />
    <button x="360" y="7580" />
    <button x="300" y="7640" />
    <button x="360" y="7640" />

    <button x="180" y="7800" />
    <button x="240" y="7860" />
    <button x="300" y="7920" />
    <button x="240" y="7980" />
    <button x="180" y="8040" />
    <button x="240" y="8100" />
    <button x="300" y="8160" />
    <button x="240" y="8240" />
    <button x="180" y="8300" />
    <button x="240" y="8360" />

    <button x="300" y="8480" />
    <button x="360" y="8540" />
    <button x="420" y="8600" />
    <button x="480" y="8660" />

    <button x="300" y="8540" />
    <button x="360" y="8600" />
    <button x="420" y="8660" />
    <button x="480" y="8720" />


    <button x="200" y="9000" />
    <button x="260" y="9060" />
    <button x="320" y="9120" />
    <button x="380" y="9180" />
    <button x="440" y="9240" />
    <button x="500" y="9300" />
    <button x="560" y="9360" />
    <button x="500" y="9420" />
    <button x="440" y="9480" />
    <button x="380" y="9540" />
    <button x="320" y="9600" />
    <button x="260" y="9660" />
    <button x="200" y="9720" />
    <button x="260" y="9780" />
    <button x="320" y="9840" />
    <button x="380" y="9900" />
    <button x="440" y="9960" />
    <button x="500" y="10020" />
    <button x="560" y="10080" />

    <button x="200" y="9060" />
    <button x="260" y="9120" />
    <button x="320" y="9180" />
    <button x="380" y="9240" />
    <button x="440" y="9300" />
    <button x="500" y="9360" />
    <button x="560" y="9420" />
    <button x="500" y="9480" />
    <button x="440" y="9540" />
    <button x="380" y="9600" />
    <button x="320" y="9660" />
    <button x="260" y="9720" />
    <button x="200" y="9780" />
    <button x="260" y="9840" />
    <button x="320" y="9900" />
    <button x="380" y="9960" />
    <button x="440" y="10020" />
    <button x="500" y="10080" />
    <button x="560" y="10140" />

  </buttons>
  <!--
  
  Powerup Categories:
  1 - Good
  0 - Bad
  
  Powerup Types:
  HEALTH = 0,
  HELMET = 1,
  PARACHUTE = 2,
  BUBBLE = 3,
  CAPE = 4,
  AXE = 5,
  BOOMERANG = 6,
  HAMMER = 7,
  KNIFE = 8,
  PLASMA_BALL = 9
  
  -->
  <powerups>
    <powerup category="1" type="0" x="384" y="4300" effect="2" lifespan="10"></powerup>
  </powerups>
</level>